
/**
 * @author user12
 * The Bill Pugh implementation of Singleton which is the most recommended implementation
 * The Implementation based on "initialization on demand Holder" idiom
 */
public class BillPughSingleton {
	private BillPughSingleton(String argStr){
		str = argStr;
	}
	
	private static String str;
	
	public static class LazyHolder{
		private static final BillPughSingleton singInstance = new BillPughSingleton("Hello");
		
		public static BillPughSingleton getSingInstance(){
			return singInstance;
		}
	}

}
